!function(){
    window.jurisdictions = [];
    
    window.FrameDrive = {
        
        getUris:function(){
            return { 
                Grid:"/Server/Grid/", 
                Upload:"/Server/Upload/"}
          },
        get: function (name, self) {
            var Open = function (val) {
                self.UIEventPool.run("P0003", "ShowLoading", {});
                self.UIEventPool.run("P000", "Show", {
                    id: "P0002"
                });
                setTimeout(() => {
                    self.UIEventPool.run("P0003", "Open", val.Drive);
                }, 100);
            };
            var Config = {
                "InitVal": 0,
                "name": "carousel",
                "ID": "P000",
                "autoplay":false,
                "List": {
                    "a": {
                        "name": "carouselitem",
                        "InitVal": 0,
                        "id": "P0001",
                        "Form": {
                            "name": "filelist",
                            "Parameter": {
                                "data": {
                                    "sourceid": "M_686"
                                }
                            },
                            "ok": true,
                            "List": {
                                "add": {
                                    "type": "success",
                                    "__id": "add"
                                }
                            },
                            "multiple": true,
                            "FileType": 1,
                            "uploadBtnText": "上传图片",
                            "crop": false,
                            onSelect: function (item) {
                                Open(item);
                            }
                        }
                    },
                    "b": {
                        "name": "carouselitem",
                        "InitVal": 0,
                        "id": "P0002",
                        "Form": {
                            "InitVal": 0,
                            "onResize": false,
                            "name": "container",
                            "List": {
                                "a": {
                                    "InitVal": 0,
                                    "height": "60px",
                                    "name": "header",
                                    "Form": {
                                        "InitVal": 0,
                                        "name": "menu",
                                        "List": {
                                            "Home": {
                                                "label": "返回",
                                                "type": "success",
                                                "__id": "getHome",
                                                "name": "button"
                                            }
                                        },
                                        Click: function () {
                                            self.UIEventPool.run("P000", "Show", {
                                                id: "P0001"
                                            });
                                        },
                                    }
                                },
                                "c": {
                                    "InitVal": 1,
                                    "name": "container",
                                    "List": {
                                        "d": {
                                            "InitVal": 0,
                                            "name": "main",
                                            "Form": {
                                                "InitVal": 0,
                                                "ID": "P0003",
                                                "name": "preview"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
            return Config;
        }
    }
    }(window)